<style>
    table tr > th, table tr > td {
        text-align: center;
        vertical-align: middle !important;
    }
    span > i {
        margin-left: 10px;
    }
</style>
<div>
    <div class="statistic-box bg-success m-bottom-md" style="margin: 0;padding: 5px;border-radius: 0;">
        <div class="statistic-title">
            {{ schoolName }}
        </div>
    </div>
    <div class="statistic-icon-background">
        <i class="ion-eye"></i>
    </div>
    <table class="table table-hover">
        <tr class="info">
            <th>老师</th>
            <th>应用</th>
            <th>布置数</th>
            <th>布置题量</th>
            <th>自练数</th>
            <th>最后布置时间</th>
        </tr>
        {% for tch in appUsage %}
            {% for app in tch['appUsage'] %}
                <tr>
                    {% if loop.first %}
                        <td rowspan="{{ tch['appUsage']|length }}">
                            <a style="cursor: pointer;" onclick="window.top.xhTop.showModal({
                                    title: '教师跟踪-{{ tch['tchName'] }}',
                                    size: 'lg',
                                    content: xhTool.getFrameString('{{ url('tch/tchTrack/2?iUserId=')~tch['tchId'] }}', null, 600)
                            })">
                                {{ tch['tchName'] }}
                            </a>
                            <p style="margin: 5px 0 0 0;font-size: smaller;">
                                {% if tch['subject'] %}
                                    <i>{{ tch['subject'] }}</i>
                                {% endif %}
                                {% if tch['grade'] %}
                                    <i>{{ tch['grade'] }}</i>
                                {% endif %}
                                {% if tch['proficiency'] %}
                                    <i>{{ tch['proficiency'] }}</i>
                                {% endif %}
                            </p>
                            <p style="margin: 5px 0 0 0;font-size: smaller;">
                                <i>行政班：{{ tch['adClass'] }}</i>
                            </p>
                            <p style="margin: 5px 0 0 0;font-size: smaller;">
                                <i>电子书包班：{{ tch['eBagClass'] }}</i>
                            </p>
                            <p style="margin: 5px 0 0 0;font-size: smaller;">
                                <i>职务：{{ tch['duty'] }}</i>
                            </p>
                        </td>
                    {% endif %}
                    <td>{{ app['appName'] }}</td>
                    <td>{{ app['taskFixNum'] }}</td>
                    <td>{{ app['taskTopicNum'] }}</td>
                    <td>{{ app['practiceNum'] }}</td>
                    <td>{% if app['lastFixTime'] is defined %}{{ app['lastFixTime'] }}{% endif %}</td>
                </tr>
            {% endfor %}
        {% endfor %}
    </table>
</div>